import java.util.Scanner;

public class Main1023 {
    public static void main(String[] args) {
        int i;
        Scanner s = new Scanner(System.in);
        int number = s.nextInt();
        if(number==1){
            System.out.println("F");
        }else{
            for (i = 2; i < number; i++) {
                if(number%i==0){
                    System.out.println("F");
                    break;
                }
            }
            if(i==number){
                System.out.println("T");
            }
        }
    }
}
